import request from '@/utils/request'

// 查询课程列表
export function listCoursePlanCategory(query) {
  return request({
    url: '/courseplan/category/list',
    method: 'get',
    params: query
  })
}

// 删除课程
export function deleteCoursePlanCategoryByIds(categoryIds) {
  return request({
    url: '/courseplan/category/' + categoryIds,
    method: 'delete'
  })
}

// 修改课程
export function updateCoursePlanCategoryById(data) {
  return request({
    url: '/courseplan/category',
    method: 'put',
    data: data
  })
}

// 新增用户
export function addCoursePlanCategory(data) {
  return request({
    url: '/courseplan/category',
    method: 'post',
    data: data
  })
}
